<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<probiz:pageHeading entityName="${tag.tagName}" entityHeadingKey="tagDetail.heading" />
<content tag="buttons">
	<probiz:probizBtn btnType="save" onclick="return fnDoSave(this);" />
	<probiz:probizBtn btnType="saveAndNext" onclick="return fnDoSaveAndNext(this);" />
    <c:if test="${tag.tagId!=null}">
		<probiz:probizBtn btnType="delete" onclick="return fnDoDelete(this);" />
	</c:if>
	<probiz:probizBtn btnType="cancel" onclick="return fnDoCancelForm(this);" />
</content>
<probiz:showBindErrors bindPath="tag.*" />
	<form:form method="post" cssClass="mainForm" id="tag" commandName="tag"
			action="${ctxPath}/other/tag.html" onsubmit="return validateTag(this);">
		<input type="hidden" name="tagId" value="${tag.tagId}"/> 
		<table class="table-content" cellSpacing=0 cellPadding=0 width="100%" border=0>
		<probiz:input property="tagName" />
 		<probiz:input property="module" />
  	</table>
</form:form>

<v:javascript formName="tag" staticJavascript="false" />
<script type="text/javascript">
    document.forms["tag"].elements["tagName"].focus();
</script>
